using flatten() and uniq() from underscore

Removed the equivalent methods from helpers.coffee