remove extra javascript