Enhancements

Added:
 - change document title to slideshow name
 - comments for better maintenance

Changed:
 - few changes and improvements

Fixed:
 - id range check (closed #5)
 - improved js parameter (closed #4)