add prototype and modified index.jsp