s/field_id/elementId/

I could be wrong, but this looked like a typo.  Thanks for the awesome writeup!  Cool stuff.