Whitespace cleanup

Reduces size of files and makes them cleaner.

Whitespace isn't visible in most editors but thought to clean out unneeded spaces from the files since it makes them more unified. Since editors automatically make indentation based of the structure of code, there isn't need to keep unneeded whitespace in the files.

Another small change in the automatic addition of newline at end of file. Makes things easier to look if viewing files from command line (yes, that might happen in real life…).

pinbox.js looks useful and I'm considering using it in few different things in future. :)