Remove Js code used by servlet for fronted approach