Update MY_Controller.php

Added a simple method of rendering the view variables as json