Separated JS from HTML, this took me fucking forever I hate my life