JS: making stockLevel mandatory