Added debug levels and a logging function
Add variable for jQuery

Add ugly hack for making layer visible in LayerSwitcher. Needs _real_ fixing. See #7