Replace call to type history for jsGlobalScope by annotation

Does the same than for jsAny but for jsGlobalScope