This is almost the final copy

added javascript