Adding margins on rotation

- The plugin now adds margins to correct the overflow after rotation
- Correct reference in demo.html