Ah yes the example is using a main and mobile variant and the javascript is only needed once in the placeholder on the main variant. Glad you got it working.