Add cucumber hook to check there are no JavaScript errors