add lesson javascript