Add JavaScript constructer like initializer.