update javascript import/require section
add to npm scripts section of js chapter
cleanup