Import querySelector function

Did you modify your Function to match? (and when sharing code please follow the guidance in this post: How to share code or flow json)