JS styling guidelines

additional guidelines with example. See http://jscode.org/03c498