Update input-directive.js