put js in the main