more JS tinkering