Fixed js error on users index page