persistent q in javascript