Fixes a bug where negative values can go out of bounds
Merge branch 'master' of https://github.com/avinoamr/noise.js