Fix lint errors in interpolate.js and interpolate.spec.js

I fixed all the lint errors.
The `parse` function will now throw an `Error` if the `path` can't be extracted from `obj`.