alexgibson/shake.js — pull request #5 by peterhry (2013-04-15 05:36:57+00:00)
Title: This should fix issue #4

You weren't storing the lastX, lastY and lastZ values.