takes out scoped lookup of some global functions like Date and setInterval. this is a hacky workaround and is related to #2