base: improvements for jQuery plugin generator

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