fix some jslint error

1. better use dot notation
2. remove un-need space