Javascript library for writing single page apps