JS for input and results form working.