Javascript added, will create but not close or change posts dynamically