Fix #14411 by setting JSON Content-Type for Gist API request
grunt
Assume Element.getBoundingClientRect() exists; Fixes #14093

[skip validator]