A very simple javascript solution for message queueing