Clean up

- Use $.each for IE compatibility
- Remove unused variable "s"