The JS interpreter isn't there to lay out an interface, it's there to help them understand untrusted code that they find on the filesystem.