a client javascript library for ad helper