Apparently the JS file wasn't linked to the HTML one