Fix JavaScript errors
Switch from hogan to mustache