Make jquery aim browser compatible.

A response to https://github.com/cihadturhan/jquery-aim/issues/4.