changes config file and adds javascript stuff