I am new to javascript. My code is working OK with some numbers, but Factorial(5) gives me 121 instead of 120. 

```
function factorialize(num) {
    var factorial=0;
    var x=0;

    for(factorial=1; factorial<=num; factorial++) {
        for(x=1; x<=num; x++) {
           factorial*= x;
        }
    } 

    return factorial;
}

factorialize(5);

```