First version of formatting

This is a first try at formatting the code.

It uses the latest version of jscs and the old code i had from months ago. It still has som minor issues but it works even on the webglrenderer file altough it takes a second or 2.