introductroy js and php classes