wrap jquery initialization code