Js

Learning about [OO programming](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript) in Javascript.
Yeah, our style guide dictates that functions should be assigned to a variable. This is to prevent issues with namespace hoisting (see http://jamesallardice.com/explaining-function-and-variable-hoisting-in-javascript/).