Implemented reverseString in pure JS and QUnit test for it.