PRD-1055 (JS part)

Addition to https://github.com/Mirantis/fuelweb/pull/1207, JS part.
Includes https://mirantis.jira.com/browse/PRD-1055 fix.