finished jshint refactoring