Now verifying query on form submission; giving error if no name or interaction type is selected. Disabled the interaction types that are not functional in the UI. Moved data query-specific javascript into a separate file.