Added models, templates and some js stuff