added handlebar templates to generate the page, i had to split model to model and view model as model is used in server now and jquery does not load if running in node