javascript - Security issues with reading a JS array? -
i'm building website have js multi-dimensional array in .js file in scripts folder on server. in array video embed codes (vimeo iframes) , additional strings composers, players , piece names. there 1000 videos in array. var videos = [ ['embed code', 'composer name', 'player name', 'piece name'], ['embed code', 'composer name', 'player name', 'piece name']...]; there search text box users specific searches composer, player, etc. jquery script iterate through each inner array find matches user's query , present them on page. this: function getarray(video) { if (campyear === video[j]) { var pos = video.indexof(video[j]); $('#searcharea').append('<td>' + video[(pos - pos)] + '</td><td><h3>composer: ' + video[(pos -pos) + 1] + '</h3><br><h3>player: ' + video[(pos - pos) + 2] + '</h3><br...