Some changes for bidi support
Adding some changes and tests
Remove jshint errors