create separate file for js