basic support for embedded javascript added