remove unnessesary javascript code