Factor trees using JavaScript

I just created a script which creates a simple factor tree for many numbers. There is a maximum limit to the size of the number where the script is completely effective, but it is very large.

You can view it here.