A node.js algorithm for the aufbau principle of electron configurations