Implement type 0x5D scales.
Start jshint cleanup.