Change Css Property Javascript Array Functions