Calls matlab code and sends json to browser