Javascript - Next Prime