use checkNotNull()
add first version of javascript client