JavaScript code editor with file switching