Add format_comparison_bars_to_js to format module

format_comparison_bars_to_js is a function that takes care of the
formatting of coordinates data into javascript objects to create the
connecting lines between compared plots.
Fix error in formatting

Javascript keys were not being created as strings