Adds javascript for creating notifications