Fix JSON error

Please merge soon, because this problem makes it totally impossible to use the package with bower.
Merge pull request #169 from adityamenon/patch-1

Fix JSON error