(partly) laying foundation for jquery plugin and plugin tests