Extracted javascript source code from unit-circle.html to unit-circle.js