a js to upload a pic from webcam every xx seconds (old project)