Restructuring framework to be a JSPart.