Update Mex.php

Add helper function endJsonp();
Add default header OPTIONS into 'Access-Control-Allow-Methods'
Delete request( '/' )