Whitespace / indent fixes

Previously the applet.js file had heaps of whitespace floating around at the end of lines which this commit cleans up. Also, previously it was using tabs on some lines and spaces on others to indent which made for quite a mess, so this commit makes all indentation use tabs only.

There is another commit in this pull request which deletes the applet.js~ file (note the ~ at the end) which was probably never meant to be commited.