Modifies files to get json ajax to properly work