Removing Unnecessary Javascript