gbrowse upgrade and js compatibility fixes
* closes #2495
* closes #2502
* may also address #2582