fixing code layout and start data value

use treborEditor init for the start window.onload