javascript runtime extends