moving badge ad slot to js
jshint fix