Changed bindJavascript function to counteract possible bug due to pjs default assignment as undefined.
Fixed javascript bug due to name conflict in processing.