JavaScript coursework