add overlays behaviors and remove script tags