Ugh, javascript and it's brackets everywhere. Fixin that.