Fixed issue with IE parsing dsl and added tests for scoped functions

* Changed findNextToken to use charAt (for IE)
* Added tests for scoped functions
Added examples for using dsl directly in browser