how to call javascript function from php with parameters