Solve total problem with jquery.