A Lightweight Javascript Framework for Rich-Media Ads