JavaScript update, almost complete.

I'm going to continue working on the stuff i want to put in tonight,,
but just incase i destroy the code accidentally i though putting in code
that should work would be a good idea, even though right now it is crazy
inefficient.