Initialize $templates variable.

Fixes #5