Everything was out of place. Moved functions to the top of the page, closed the body and html tags, created a remove link