Python Dynamically Add Variable To String Javascript Methods And Functions