Removing unnecesary javascript