[NF] Pass parameter to java script via JSONObject (#23).