optimize and change style border vanilla js

join shbcf.ru