Php Empty An Array Javascript Function Syntax