Python Create Json Array Javascript Function Parameters Passing