Merge pull request #1 from chadly/master

Allow to work without global configuration
Added ability to optionally use a global config to specify base template path and file extension.
Made jslint pass by reordering and setting define to be a global