javascript selection part one is done