cleaned up js, adding support for ad reports