Also add insertAfter method to svg rect elements
Fix typo
Fix background rectangle positions