*8218* JS controller to PKP lib