Update runtime.js

simplified === and !== undefined checks