Exception should be js/Error in JS