a liter javascript code study