Add JS built-in files downloading

What about adding a built-in file downloading system. It would be better than using HTML and click events.