added code for setCameraPosition call from js.