Bug with mapScales option
JS - correct typo