updated options config for fields and modified script.php js