Now do the same in javascript: http://gamedev.stackexchange.com/questions/30727/implement-fast-inverse-square-root-in-javascript
Now do the same in javascript: http://gamedev.stackexchange.com/questions/30727/implement-fast-inverse-square-root-in-javascript