Bug 915684: Fix for url var not in scope after refactor. r=alive

https://bugzilla.mozilla.org/show_bug.cgi?id=915684