add info on how to use with js