Form is complete, error alerts are up, need to change JS code to pageinit method