js init (init finished)