Rename variables in _createNewViewSequence to clarify meaning. Add minor edits to pass jshint.
Convert function expressions to function declarations