I am wondering if there is a way to make executable using just javascript
Check ElectronJS where you can build nodejs executable Electronjs
Check this one out. github/nexe