Issue #5 fix and few more updates.

1. Fixed issue #5
2. easing function changed from easeOutQuat to easeOutCubic.
3. Code updates to satisfy JSLint.