Last of the embedded JS removed from index
Get rid of globals