javascript: renamed and improve print-focused

Now the functionality is equivalent to the c counterpart, and
the name is more similar
javascript: added README.md file
c: updated documentation for print-focused-selected