update javascript.vim to handle different function definition syntax