non working
fixed instantiation of JS plugins