Bugfix for old jquery version