Fixed bug in Firefox.
Cleaned up CompassPrimitive and ScaleWidget code, and added options parameters (customizable position, scale, colors, etc)