simplified uniqs.js