human heart written in javascript