Solutions to Eloquent Javascript exercises