Rotating Object about different axis

Hi,

I have started using WebGl recently. I have come across a problem that I am not able to solve.

I have drawn out the 3 axis perpendicular to one another and I have a cone place at the center with the base on the xz plane. I want to rotate the object WRT to the axis that I have drawn. I am able to rotate the object correctly in one axis. Then when I rotate again it rotates with respect to it local axis. In short, when I rotate the object, the axis of the object also rotates.

Is there a solution to this? Pls help.