Added alert to get viewport dimensions