rm unused libs, fix js