st:bind adds json2 include on first invocation by adding an extra <script> tag. This extra tag caused sytax error in the generated javascript.
Fixed this by explictly creating a named variable with st:bind for the view proxy.