Define $html before using it. Fixes #2
Wrapp ENV variables in single quotes. Fixes #3
Fix tests