Ct work

How about assigning `$("#space-" + counter)` to a variable since you use it more than once.