Two Sum Algorithm Javascript Playground