Fixed input.js callback