Complex Variants database manipulation using Javascript.