fixed referrer, fixed gridTop on mobile

fixed the referrer if statement in the js, added height styles for
#gridTop in order to compensate for the js update earlier