adds working javascripts and makes links to a set of js-files for diffrent pages