Delete old code from js file