removed unused variables
use jshint