Made several changes to the application and the supporting files.  Also added a few more tests for the javascripts, 2 of 8 tests currrently fails.
Latest changes. 2 failing tests still remains.