`|| getParameterByName` is not necessary here. Besides, it's a violation of modularity, and can cause problems with tests.

PS: Oh, by the way, there are tests! They're in `www/test/index.html`, there're not many of them, and I won't tell you to test everything you wrote, but if you want, you can :) Jasmine is fun.