"var X function()" => "function X()"

Ran: sed -i .bak 's/var \(.*\) = function/function \1/' src/*.js

Replaced all instances of var functions with proper (non-anonymous)
function definitions.