JavaScript for level one