Resolved two minor issues (reported by JSHint)