fixed dependencies, build for js