adding non-native global declarations for JSlint