Google-docs-viewer is a project mainly written in JavaScript, it's free.
install as a google chrome extension