moved coupons into cookies, cleaned up JS