cleaned up unused var's and JSHint issues