Javascript Modal Fix
Added console log