Add JS function assigned to variable snippet

Often we want functions assigned to a variable, so I added a snippet for it!

Cheers,
Louis