Consistency in require usage

Convention normally dictates the use of `foo = require('bar')`.

In some places here you were using `foo = require 'bar'`.

It's always best to use the same approach throughout.