fixed js errors and built pep