Finished putting javascript and templates into separate files from index.html; sync'd doc loading and jQuery loading of the html templates using jQuery deferred objects.