Added js style guide

This is a first draft of a JS style guide that @robertkowalski and I put together. Feedback very welcome!
Thx for the context. @kxepal the mailing list agreed to 4 spaces for all Erlang & Python (and I do need to get back to that) but I agree with everyone above that we should stick to 2-space in JS.