See comment above not to mix php and javascript.