fix #241 Port Ads Dimensions Demo to AngularJS