set javascript function call from php