refactored Editing.format into .format and .style
basic refactoring done - tests still broken, but no js errors