Standardising code style

Hey Addy,

Love the book, but found a lot of the code examples used inconsistent styling and going about fixing it up for you now.

This PR checked and standardises constructor and module pattern chapters.

About standards, I notice you pad the parens when calling functions, but there is an inconsistency in calls where the parameter is split into multiple lines. I've seen both examples below used in samples, which do you prefer?

```
fun( {
 hello: world
})

fun({
 hello: world
})
```