Converted to IIFE pattern and added Buoy micro-library