moved jquery if else to head
Merge pull request #68 from josiah85/v1.8.1

moved jquery if else to head