made test page. fix some regex
snap slider to center on mouseup