creating a jquery plugin from scratch driven by tests