Javascript lecture notes