Make notation in phi formula consistent with JS array notation