Removed duplication in add_axes, add way to ask for log axes in JS