start of pure JavaScript-based Babelsberg implementation