Trying to solve a problem with a freaking function queue. I <3 JS! :D