Switch to JS wrapper classes

For JS interopability with ACE and its associated classes.