KRACOEUS-7196 fixing javascript bug
Merge pull request #496 from jhulslander/KRACOEUS-7196_medusa-js-2

KRACOEUS-7196 fixing javascript bug