fixed circle size reset when moved bug
making a javascript version