Change function declaration to function expression