It's called a hypnagogic jerk and they're perfectly normal to have. I used to get them pretty much every night and i'd act like I had an electric shock I don't think i've had one for weeks now...
I got one. Most of the time when I get them, I have a dream where I A) Fall off a cliff B) Walk off the edge of a sidewalk which is on the edge of a cliff C) Step on a landmine D) Have an odd dream where a salt and pepper shaker are actually secret agents and I push them both into a pool which is made of fog because I think they are traitors, when in reality I am the traitor. That dream was weeeeeeeeeird