got rid of extra javascript