Change in index.php to invoke casperJS script and merge results