Modified hand.js