simplified the lazy load javascript
sample file for using Handlebars.js templating