extract js to a js file of new_record.jsp

NOTE: for ${pageContext.request.contextPath}, need to find a way to pass it as a param into js,
now jus use a absolute value "/personfi" to replace it, not a good way.