javascript interview code test