Use Variables In String Javascript Functions Explained In Python