Update HMC5883.js

Change setmode to setMode and setgain to setGain