add js for post layout