Fixed the API so it now works from a webpage, not just the command line
Merge pull request #6 from jkswoods/master

Fixed the API so it now works from a webpage, not just the command line