PHP, JavaScript, MVC Pattern