Use bitwise not to handle differentiating rAF and timeout

Fixes #13
Merge pull request #15 from azakus/async-id

Use bitwise not to handle differentiating rAF and timeout