well it sort of works, but you have to define functionality in js, which is entirely not chill, but moving to the haskell reverse function fails miserably because the types aren't proper strings, but either a packed string of char codes, or an object that represents the list of characters, which is a bit of a haslle