Remove Specific Value From Array Javascript Function