Rename example js file
Fix bug in the example, not passing along parent
Update documentation to include dependencies
Allow node templates access to outer scope. Fixes #1