fixed style issues
use jshint