Make the object return JSON, not a js object
Adding VERSION parameter to function
Adding example to README.md