Seperate html and js from php