Changed how bordercolor is changed in the js-file and created an onchange function that changes the bordercolor back to black.