Php Empty An Array Javascript Methods And Functions