To switch from container to local, you only have to change the html (split auth.js into auth.js and auth_local.js)