Wrap everything to jquery plugin