Alright well, joining the class serverside wasn't part of the problem, it indeed was the defining of the profile object in the class. So that fixed the problem, thanks Chris.

Btw i'll reference using PHP tags next time.. I was actually unsure when I was making the thread, I THOUGHT it was PHP but than suddenly something in my head told me to click HTML tags. -.o