Native runtime library equipped with Java/JavaScript-like API