Simplifying src/vanilla-masker.js