Moving test code into functions
Also trying out html5 datalists, will need a polyfill for safari
More refactoring for modularisation.
Added new functions to aid lookup. Find path now accepts commandline
parameters