removed old things and removed js api