how do you create a function in javascript?