upgrade js file