new js code for camera