Added jquery dependency, fixed some errors.