Updated package.json to versino 0.2.2
Updated code according to some JSLint issues