Write a program in JavaScript to find the cube of a number using function