Migrating Multi-page Web Applications to Single-page AJAX Interfaces