moved array into js