Loading sentences from database to ui

Updated the javascript to load sentences from the database and display
them to the page. Re-arranged some files to allow testing of the static
html pages