MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
I know yor solution is good. But in my case, I have not PHP on the server (and the most important... I have not idea about PHP, only javascript -I know it's not so much...-)