js code added

to input form