fix init js file