added main chaos.js