Refactored manage seed JS code out of the php file and into it's own JS file.  Also fixed a bug in it.