Fix local variable issue.
More bug fixes.
Setup qunit testing. More bug fixes. New build.