Node js experiment using JS getdeviceorientation event