Removed usage of ~ for "contains" so that jshint can continue to be enabled for bitwise warnings and run clean.