Compatibility to jQuery 1.9.1

Compatibility to jQuery 1.9.1 - changed deprecated functions to supported ones.