fixes #8 and fixes #9 IE8 JS errors.

 On branch master

	modified:   _themes/pinfinity/partials/head-javascript.html