Restore "run_in_page_context" wrapper for Safari
Handle external libs differently for Chrome/Firefox and for Safari

On Safari, the scripts are wrapped in the "run_in_page_context" method,
which seems to prevent angularjs from loading (and maybe other JS
framework scripts too). I'm running an externally-hosted version using
$.getScript() instead of loading the local versions as Firefox/Chrome
can do.