Remove unused javascript codes