From GEM to electromagnetism