Create rotate-function.js