support for plain javascript