fix deprecated js (required by jquery 2.0)