change js to use npl classes