Added post: When you let PHP generate your JS