Added js style guide

This is a first draft of a JS style guide that @robertkowalski and I put together. Feedback very welcome!
Yeah all our JS is 2-space (I actually find that a little too short myself, but I wasn't going to fight a war over it). Our HTML templates are mostly 2-spaces too I think. Depending on how this PR goes, I was thinking of doing a separate HTML style guide.