added callbacks field to transition object.
added browser option.
fixed various errors.