creating seperate file for js