removing useless javascript