javascript test map