Fast and painless bitmasks for javascript projects