moved screenshots js code to a dedicated file
JS code to display retrieved list of screenshots
swapped HEAD and PATH substitutions so that we can include %PATH% into %HEAD% and still get a replacement
also, added a global func helper to add an HTML header
moved translate-specific JS code to a dedicated file