added the dist folder to the ignore list and ook the Style and Selector functions out of the onload function