tmpl.js

adding readme to explain function a bit