base: jquery-plugin creator adapted to requirejs

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>