added contains method to utils.js