Removing extra javascript