add javascript lib to suipport certain features

and modify the privacy terms