put js in require

put js in require