Fixes for JS completion (no global scope though).