Use one javascript variable into another javascript file

Please simply place commonJs var outside the jQuery function and try again. It will work for you.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)