modify the structure of the js file