back into working testing order!

sorry for the 4 hours of commits.
im tired and shit happened
now it is back in working order the way i originally planned the hardest
part now is getting the html to work...

i added the html and javascript code to achieve that and test it. no
promises though html isnt my thing. if this was C/C++ it would be a
different story...

8 am and my ass is tired...