JavaScript program to find square of a number