rewrite loadavg.js