swapped load to using ajax method as it wasn't working. Wrapped js in an IIFE passing in jQuery