How to display the computer’s current RAM usage with JavaScript?

I want to make a Chrome extension to monitor CPU and RAM usage, but I can’t find out how to get the current RAM usage of the computer. I searched on Google and didn’t find anything. Eventually, I …