Added js style guide

This is a first draft of a JS style guide that @robertkowalski and I put together. Feedback very welcome!
Small nitpick here. If there are disagreements it should actually be discussed on the mailing list.