Use iOS development principles to write Single Page Application Web App