User Message Queue Javascript implementation