javascriptnode to scriptprocessor, former is deprecated