added arrays for javascript