improvement for jquery init