Remove "function" keyword in function definition

According to the document, it's more portable when defining a function
without the "function" keyword.
http://tldp.org/LDP/abs/html/functions.html