added some js stuff to input fields