got rif of global on js libs