created file for manipulating arrays in js