SyntaxFix
Write A Post
Hire A Developer
Questions
function x() {}
is equivalent (or very similar) to
var x = function() {}
unless I'm mistaken.
So there is nothing funny going on.