added jquery link and resize function for dots