plugin stuff added to javascript