Resolve js error and link entire 'li' row not just the url text