Use Math.LOG2E instead of Math.log(2)