javascript sexies
2
fixed index conflicts