initializing js file