JS tests added; fixed Safari tooltip bug

This pull request includes primarily JS-related commits, to:

- add new test scenarios to the Jasmine tests
- adjust pathing in Jasmine test xml/html files
- update path handling during xml/xsl load of document, HTML serialization
- fix tooltip bug in Safari