Update main.js

this is all it took as well as extending the cycle library