Remove "var" declaration and use "function"