Set Array Empty Javascript Function How To Use