Google for some jQuery tutorials and see what you can make of it.
- conditional statements (if / switch)
- loops (for / while)
Optional, but good to know:
- singleton pattern