Oh, I think it was mostly moving the helper functions above it. I think having the helper functions below the calling code messes up the chrome developer tools, making it keep parsing the wrong length and making breakpoint not stop at the right code.