can we use go-ipfs for building JavaScript applications?
Yup, you can interact with the Kubo daemon with ipfs-http-client.