js client groundwork