clean up client-side js