split editor js to use require