remove unnecessary javaScript