Fixing jshint errors and converting tabs to spaces