Fixes #202 - width discrepency for firefox

I simply switched the order of the if statement to use jquery first if available because it's more reliable (and works for FF) than the raw javascript (which didn't work for firefox)