added js plugin manager and corrected a big bunch of things