fixes and tweaks about the js and missing fetchQueues function
Adding the changes from stash