What am I doing wrong? Here is my code:

I have wrapped the javascript in php. When I refresh the page, I get this error:
"Parse error: syntax error, unexpected '<' in /home/leetvape/public_html/catalog/view/theme/gray/template/common/footer.tpl on line 34"
Very frustrating and I know it's some simple, silly syntax error that just isn't processing in my brain.
SOS!
Thanks in advance,
-Jordan