Hook up inputs to js