Small js edit, adde pageinit for form page