main.js redirect broken

This is necessary for firefox and chromium. IE untested.
Merge pull request #8 from aebrahim/patch-1

main.js redirect broken