practicing some javascript because, ya know, you should