setting up js file