remove outdated js code