Major refactoring on simulation javascript