Changing function call to to() instead of css()