moves browserHasCanvasSupport onto the global namespace. adds browserHasSVGSupport.
fixes lint issues