Insert this JS where you load in your custom JS (i.e. before closing body tag):