JavaScript file for hm5883l 3-axis compass