Remove unnecessary aliasing of ui.query()
Add some pseudo type annonations to the function definitions in editor.js for readability purposes. Also add a simple build script for convenience.
Fix some wrong type annonations in editor.js