Fix javascript error that was causing ajax follow and unfollow to break the second time