change <script> to erb commands