my solutions to the exercises in Eloquent Javascript