a php/javascript integration framework