Bug 1052243 - jshangul.js need unit tests

I write unit tests for 'jshangul.js'.