Add js logic to blog promotion plugin