Added js file, improved editor, added scripts support