Refactored to use JS lib 1.1.x.
Fixed wrapping issues.
Spacing.