various fixes

- at version in samples.js
- unindent loop in snippets.js
- resources in viewer.jade
- less restrictive test in ViewerFilter.js