fixes for warnings when used with jQuery 1.9