Updated to set focus to JS view after opening files