JavaScript library for AdFox