Refactor JS code. Refactor request. Refactor layout