HTML-5 implementation of G-Mask utility