Fix unreferenced Math.sign method in older Chrome, Safari and more
Merge pull request #20 from cfei18/master

Fix unresolved Math.sign function in older Chrome, Safari and more