Update script.js

Reversing map y scale output range should correct for origin and give a cartesian plane