Fix bug in widget placement.
Factor out debug and use cachebust only on real urls.