jQuery compability for init code