A toy javascript interpreter in python