Out of cursority: isn't this whole function called every time a user clicks on the page? Won't this slow down things? Maybe better make a `.click` event of lines `31-53` , which is registered on `$(document).ready()` with a .each on the `buttons` var.