Minor changes before moving to latest version of ace whose require function seems compatible with what typescript generates natively.