JS optimizations; Queue is being shown