writing input js