Update HTML tags options handing.

 * Prevent empty options printing.
 * Remove unneeded range option in HTML template.
 * Fix HTML attribute split.
Refactor serie and group items value access.
Fix various problem with graph creation.

 * Make item reorder skipping linked elements.
 * Fix error with missing serie options.
 * Remove unused variables.
Make series appended at position.
Add series positions handling in graph creation.
Reformat jshint unused comments.
Update messages for empty lists.