fix account update issue and jshint warning