The current code for initializeBitCal is not optimized at all. Your current code causes call stack exceeding on a gallery page. Instead of filtering $("*") you should just go straight with a proper selector that won't cause the code to fail. We've fixed this locally in our code by changing the selector in initializeBitCal() to $("[data-beatpicker='true']").