Generated README, added some dom helper code