Use a space after function consistently.
Use a space before functions' bracket consistently.
Merge pull request #11745 from XhmikosR/function-spaces

Be consistent with function () spaces
fix some JS to pass jscs
integrate JSCS
Merge pull request #11761 from twbs/jscs

add JavaScript Code Style checker integration