Add missing leading ; to the IIFE
Reduce the time delta between shakes to 500ms

Should be configurable later on!
Always create a new Event before dispatching it

as e.g. timestamp and who knows what else need to be initialized.
First look for acceleration values in DeviceMotionEvent.acceleration

and then in DeviceMotionEvent.accelerationIncludingGravity
Propagate the cumulated delta{X,Y,Z} values with the shake event
Update lib comment
Reduce the shake threshold
Add basic orientation support

as x/y values need to be changed in landscape mode.
Add support for orientationchange event
Use +new Date instead of new Date(), .getTime()
Set the threshold to 4

as this seems to trigger quite consistent and nice shakes, even lighter
ones.