Separating views and page loads rather than all handled through javascript