added javascript to post journal entry