js assignment

Final refining done
write an explanation in all js files, what they are doing...