Lightweight library for single-page web apps