edited long add

function to convert string to array in globals.js needs to be written