Create a helper function to set css transforms.
Store scrollpos in jQuery data instead of in an attribute.