Refactor function literal

function() -> function ()