fixed duplication in add_axes and added JS call to log axis