removing extra javascript