<script> try { a = 'b'; alert('It\'s OK'); } catch(e) { alert(e); } </script>
<script> 'use strict'; try { a = 'b'; alert('It\'s OK'); } catch(e) { alert(e); } </script>