Change portal.js to run on ready. Add language filter. Add legacy code.