Modify new.jsp javascript functionality