fix some JSLint error: using dot notation