put js in separate file; center array in browser window