removed mixed tabs and spaced jshint offence