Fix small Javascript bugs (make AWS queue and worker status work)

Currently, the queue and worker status sections inside AWS often display a "loading" spinning wheel instead of the actual information (at least while the queue is non-empty). This is due to some trivial bugs in the javascript code. This pull request (which I somehow managed to forget about for 4 months...) should fix these issues.