added jquery to fix small resize bug with safari and chrome