javascript operator now serializable

This is to fix the serializability of the javascript operator.  please approve