got rid of some useless javascript