bug with input/jQuery

Trying to fix why this code doesn't properly load input in data.js file