The problem is that you are calling a function which in turn calls another function. This happens because of a recursive function with a base case that isn't being met. 
Viewing the stack.
Code:
(function a() {
    a();
})();
Here is the stack:

The call stack grows until it hits a limit. To fix it check your recursive function has a base case that is able to be met.
(function a(x) {
    // The following condition 
    // is the base case.
    if ( ! x) {
        return;
    }
    a(--x);
})(10);
I hope this helps.