php/javascript class networking site