Refactor #4365: Bind layers' and sprites constructors with init functionality in JSB