Remove new Array() and use var attributes