fixing reference to JS natives