removed dead js code