Cleaned code - jshint