rework init code, hidden editors, setCurrentDocument and Javascript Code Hints tests