Simple Gyroscope Example with JavaScript