Answer:
You already have it inside your browser, you dont need anything else. So a simple notepad document will do the trick. Simply put your javascript code between the javascript tags and save it as code.js (or just plain HTML.) Make sure you click "All Files" when saving to ensure the correct file format.