Changing the context param to be OPTIONAL

The compile function returns a template function. The template function takes two parameters, `context` and `options`. These are both optional parameters. This commit fixes `context` to be optional.
Merge pull request #1605 from styfle/patch-2

Changing the context param to be OPTIONAL