added camera wrap javascript