A molecular dynamics written in javascript