Use first method instead of zero indexing into an array to fix jasmine spec

Should fix our develop build on travis