Optical response and magnetic moment of MoS2 material