removing unwanted javascript