DDF-231 - added all query javascript functions, moved search control view into its own file