Updated the sample webpage to allow configuration of threshold and showmask