add machine js