JS: Factor out existing use of base URL.
JS: Use base URL to build absolute URL for set_default_tab
Merge pull request #39 from 4teamwork/lg-use-base-url

Use base URL for AJAX request to `set_default_tab`