only trigger off-canvas js if there are off-canvas elements on the page