Wrap return value into JS array