#36 - fix js bug when not array