You cannot have unescaped double quotes within a double quoted string literal. Either escape them with back-slashes or else use single quotes for those internal quotes.
PS: using [noparse]
...
[/noparse] tags around your code snippets here makes them easier to read and may also make problems stand out more via the context-sensitive highlighting.