Finds all JavaScript require dependencies from a filename.