Mixing php with javascrip – Heredoc