Fixing broken vis page.

1) to_hash was being called on the collection not the elements of the collection
2) Time ago in words call was wrong in the javascript.