Update hero.js

Cleaned up redundant code