fix "JSON is undefined" error
add license
bump version to 0.1.2