Fix bug in javascript asset registration that prevented oauth redirections.
Merge pull request #3 from aaronklaassen/loading_js_bug

Fix bug in javascript asset registration that prevented oauth redirections.