Update main.js

pyramid homework