Update heart.js

update signature