fix JSLINT warning:better written in dot notation