Add recursion limit option

To prevent JS from destroying browsers.