<script> function do_something() { alert("something"); } </script> <option value="August, 2017">August, 2017</option> <option value="September, 2017">September, 2017</option> <option value="October, 2017">October, 2017</option> <option value="November, 2017">November, 2017</option> <option value="December, 2017">December, 2017</option> <option value="January, 2018">January, 2018</option> <option value="February, 2018">February, 2018</option> <option value="March, 2018">March, 2018</option> <option value="April, 2018">April, 2018</option> <option value="May, 2018">May, 2018</option> <option value="June, 2018">June, 2018</option> <option value="July, 2018">July, 2018</option> <option value="August, 2018">August, 2018</option> <option selected="selected" value="September, 2018">September, 2018</option> <option value="October, 2018">October, 2018</option> <option value="November, 2018">November, 2018</option> <option value="December, 2018">December, 2018</option> <option value="January, 2019">January, 2019</option> <option value="February, 2019">February, 2019</option> <option value="March, 2019">March, 2019</option> <option value="April, 2019">April, 2019</option> <option value="May, 2019">May, 2019</option> <option value="June, 2019">June, 2019</option> <option value="July, 2019">July, 2019</option> <script> function do_something_else() { var v = "a variable"; var vv = "another_variable"; do_something(); } </script> <script> function courses() { var v = {}; v.events.list = [{"start": "2018-09-21T10:00:00", "end": "2018-09-21T12:00:00", "text": "(10:00-12:00)<br>COURS/TD<br>Cours quelconque<br>L3 Info s1 CMA<br>Salle quelconque", "id": "0", "tag": []}];; } </script> <script> courses(); do_something_else(); </script>