Update simulation.js
Fixed an embarrassing if-else statement.
Removed unneeded if.
Merge remote-tracking branch 'origin/master' into gh-pages