use moment.js to mimic the Rails time time_ago_in_words helper

fixes #147
Merge pull request #149 from acmetech/master

use moment.js to mimic the Rails time_ago_in_words helper