fixed bug with records and storm reports widgets giving js errors