used different jquery selector for speedup, and changed some checks for class.jsp