add a type field, old for plain old greasemonkey scripts, new for the custom env