Fix JS error for users that don't have Ajax included

Some users only include prototype on certain pages, this conditional will always error unless it's included.
Merge pull request #41 from mykehsd/patch-1

Fix JS error for users that don't have Ajax included