Fix JSON error

Please merge soon, because this problem makes it totally impossible to use the package with bower.