how to call javascript function in php