Fixed js error on users index page

fix for issue #241