Added DRY redraw function, removed script CDN protocols