Added PHP pre-processing to JS.