working on client-side js