remove jQuery, fix random sort