fix js libraries in fastcomp; fixes #1948