Get Element Css Property Javascript Array Slice Vs Splice