Fixed a small HTML5 violation.
Made return type for anonymous function explicit.