[javascript] Dynamic function name in javascript?