change lib that have nextBitSet and prev
added strict mode, move to the self exec function lib, not AMD standard