Removed `function` from function declaration

see http://stackoverflow.com/a/6212408

Proper way to declare functions is either:

    function func_name {
        # body
    }

    or

    func_name () {
        # body
    }

Currently using the second style.