Replaced string.contains with regexp.test - only Firefox supports string.contains at this time