refactor and simplify results javascript
Merge pull request #51 from geoblacklight/refactor-results-view-js

refactor and simplify results javascript