I’ve finally found it: the Script# toolchain is no longer supported, however a Swedish developer, God bless his soul, took over and wrote Saltarelle, a great C# to JS translator. You can find it at http://www.saltarelle-compiler.com.

So you can use VS and R# and no longer care for the weird JS syntax, semantics and wheter you must place the open brace on the same line or you can move it to the next line.