fixed jQuery version issue and moved error js alert to console.warn