A screen api for 'one page' apps