Refactor #4365: Bind init and constructor functions and refactor JSB constructors