Adds sort-of-working offline.js, minor UI fixes