added preliminary javascript in anticipation of form data