Made some JS tweaks to make it work
Merge pull request #2 from andrewboltachev/master

Defaults for model and urls
- Ensure order is set to 0 if not provided
- Ensure url doesn't try to post to /undefined