js console up-down style interaction