Update web frontend javascript to new states
Small fix in integration test