update javascript with the one used in the project