working on js file