Adding bug fix regarding jquery migrate plugin script