fix issue with widget demos and BASE_URL