Implement Armstrong Numbers in JavaScript