How to Build a Browser-Based PDF Rotator Using JavaScript