moved jquery if statement to bottom
Merge pull request #71 from josiah85/v1.8.1

moved jquery if statement to bottom