copying isJSON() from gist.github.com/tracend/5975713
copying camelCase from gist.github.com/tracend/5530356
copying toDash from gist.github.com/tracend/5419653
Merge pull request #56 from tracend/master

A few common methods