A lightweight wrapper to simplify javascript camera capture