Connecting HTML and javascript in a whole new way