Reworked expandable append js