Make the library compatible with browser environment and get rid of underscore dependency

This patch makes JSONPath compatible with the browser environment without changing its usage for Node.js. It also gets rid of the underscore.js dependency, which was only used for the `Array.isArray` static method, which is now polyfilled in case the target platform doesn't contain the method.