js testing snippets (again)