Fixed the border of the javascript