Simplify `parsePaths` function.
Use `phantom.openPage` to report errors' filenames.
Fix javascript request path when working with local files