new js editor, layout, fixes