create a base js file