first try of TDD with JavaScript