J.J. Abrams based Greg Grunberg’s ‘Felicity’ character on the actor