JSTL expression to generate Javascript
===

Im writing a page that contains javascript with content generated by EL.
Script is generated properly, however Eclips thinks, that I've made spelling error due to EL syntax in javascript. Example:

    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib prefix="fns" uri="http://java.sun.com/jsp/jstl/functions"%>
    <script type="text/javascript">
       var tab=new Array();
       <c:forEach var="i" begin="1" end="${fns:length(bean.getList())}" step="1">
         tab[${i-1}]=["${bean.getList().get(i-1)}"];
       </c:forEach>
    </script>

Output is like

    <script type="text/javascript">
       var tab=new Array();
         tab[0]=["val1"];
         tab[1]=["val2"];
         tab[2]=["val3"];
    </script>

It works, but i don't like red or yellow underline in code.
How can it be fixed?