Python Fixed Length Array Javascript Function Expression