separate js from php