fixed formatting in webstuff.js
added support for negative numbers; made code prettier