[minor] adds missing comma
whitespace
minor tweak to normalise options hash
var hoisting and tidy up