Add js libraries. Fix build