Initial implementation of HTMLFileSession