Fixing resourceinput.js