added the ability to scour through an array for the first .js in main bower