Update uniq.js

Make function consistent in whether it returns `list` or a new Array.