Use require.config and correct handling of input files with .change()