How to Rotate Images using JavaScript

How to Rotate Images using JavaScript