--created from QNX's javascript file