Validate frontend app response

Make this function take an argument (the expected content) rather than hardcoding it into the function.

Maybe even 2 args, one for the URL to check and the other for the expected response.