some fixes to graphemes, to be finished once unit testing is set up
added basic unit test framework using Jasmine