In JavaScript, functions are first class objects. You could store them in objects (variables) and pass them as arguments to functions. Every function is actually a Function object.
gol is an object, which is being initialized using the object literal notation.