tweaked script source to check if load on gh pages