Added chance() to API
Moved collision detection worker code to fix bug
Fixed debug mode throwing constant errors.
Changed .min.js version to 1.0.4
Bigfixes with input types
Merging master to stable v1.0.4