[MJ-971] Fixed the anchor inside the pie chart on PRM's reports view

Most of the changes went into writing a utility function to extract query parameters from a url from javascript and renaming the affected javascript file. The other change is appending the date parameters to the href so that the anchor tag points to relevant results.
Print