add js code for check.jsp