Added yasnippet for functions as arguments in JS