Move off-canvas js into plugin