Parse the main JS file for a given package