How to run js file in browser console. then write the javascript code and name it with extension .