Update example/js/view-collection-demo.js

pull for issue #7
Merge commit '08ece55c0df7c74281dbb09f906359dac83fa228'