Fix 2 issues

This fixes 2 issues we encountered using JSHint