Add jshintrc and fix some style issues
fix issues for example page for ie6