More refactoring of code. Consolidated custom javascript into external
files. Still need to move some code from the init file bibsearch_init to
bibsearch.js
Tidied up before further refactoring
Removed ugly global variable and namespaced everything with BookWorms.
Moved all functions to the BookWorms namespace as well. Did some quick
testing on a phone and everything appears to be functional. However this
needs further testing to ensure that no errors have crept in.