Update javascript guidelines.

What are our guidelines regarding javasscript docu for parameters and field-variables? Do we wrap types in {}? When do we wrap them? When don't we wrap them? Why do we wrap them?

CC @alexispeter @njam