JavaScript wrapper for HTML5 camera input