fix #67, close #65, remove old js