Javascript implementation for factorial