Armstrong Number in JavaScript