how to call javascript function in php on button click