kata-inspired javascript test