Vanilla JS - GetUserMedia v 0.2 : Allow custom callbacks