js camera sample