Idiomatic formatting for javascript