Integrated javascript into PHP forms