<script type="text/javascript"> var dateFrom = "01.01.2013"; var dateTo = "31.01.2013"; </script> <script type="text/javascript" src="test.js"></script>