Added browser spec runner + few small array fixes