add results counter + fix js