[code] js fix init