fixed code style according jshint