Passing json @nodes_array to script; displaying in an alert