Add safe guard if run on a page thats not a jquery foundation repo