Remove use of ES6 proposal features

- makes code compatible with Chrome 37
- `Math.hypot` and `Math.sign` are part of the Harmony proposal and aren't
  necessary for these simple functions