fix editor page, start work with js