Rewrote inline JS to new baseInlineFormset jQuery plugin