fix two sneaky typos and preserve a this
Merge pull request #2 from MarionKnight/bugfixing_with_templates

fixed a couple syntax errors and re-referenced template init; it loads without errors now