Updating some things to make it work a little more like jQuery likes. Still has long running script problem.