Changed jshint option unused to true and fixed warnings