fixing js code that was uploaded before