make border variable width
clean up js