Fixed the global object issue.
Code style fixes.
Removed unnecessary source files, moving to single-file code base for now.e
Fixed the demos for the new code base.
Merge pull request #12 from davidgomes/globalobject-fix

Fixes the global object issue.