JavaScript: Basic Variable & Function usage