basic examples from client-side js