Using Slim framework to route API with PathJS and MustacheJS as templating