remove unneeded function contains, use CoffeeScript implementation instead