Shift In Array Javascript Methods Syntax Tree