refer to jsnap via github