50 lines of main.js :) and new bugs :)