New files for javascript query library

All the new files for query generation, replacing the some of the php
scripts functionality
More javascript library code

finished a few more functions and classes
update JS library code

update JS library code
Working copy of JS library
Merge remote-tracking branch 'origin/lazaro' into jose
Added JS library reference to search and submit pages