example for single-page webapp