how to call javascript function in php without any event