Adds function to add items to globals declaration in javascript

Mapped in normalmode to leader g for filetype javascript