Get Area of the Square using JavaScript