div form values and initial javascript functions