This commit fixes #342 issue.

Also I optimized size of minified file: now library is 1 KB lower