The parenthesis at the end of the function is the permission for js engine to execute the function. If you don't supply it, it won't be executed at all.
x=a() //if you do this you are invoking the function but if u just pass "a" you are passing a pointer to a function