Fixed array delcarations

Maybe had too much javascript