Fix namespace issue which caused the program not to work in FF and IE.

Fixes Github issue #1. Props johu2 for reporting the bug.