Add js script to post layout