JavaScript Pyramid