Create rotate.js

This is the file for rotating things.