Fixed coffeescript -> js, function returns