PHP class for applications based on html5 ana jquery framework