use transit instead of jquery