Update index.js

Optimize 
1) split function which creates array;
2) refuse to use Object.key which creates arrays to and works slowly since it like for-in loop

Much better now! ;)
0.7.3
Fix code style issues