JerryScript is a lightweight JavaScript engine intended to run on a very constrained devices such as microcontrollers:

print_hello("Tom")

function print_hello (name) {
  print ("Hi, " + name)
}

Check out the JerryScript sources and start using JerryScript in you projects. Please, report all found bugs and request new features at JerryScript issue tracker. If you have questions, feel free to ask them on issue tracker and don’t forget to label it with question or discussion.