JS framework for jquery plugin